package com.wofish.member.domain;


import com.wofish.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员表 wf_b2c_member
 * 
 * @author wofish
 * @date 2019-04-21
 */
public class Member extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 会员id */
	private Long memberId;
	/** 会员名，昵称 */
	private String name;
	/** 头像 */
	private String avatar;
	/** 生日 */
	private Date birthDay;
	/** 性别,0-保密，1-男，2-女 */
	private Integer sex;
	/** 已婚状态,0-保密，1-未婚，2-已婚 */
	private Integer wedlock;
	/** 注册时IP地址 */
	private String regIp;
	/** 注册时间 */
	private Date regTime;
	/** 会员等级 */
	private Long memberLvId;
	/** 等级过期时间 */
	private Date lvExpireTime;
	/** 积分 */
	private Integer point;
	/** 会员账户余额 */
	private BigDecimal advance;
	/** 教育程度 */
	private String education;
	/** 职业 */
	private String vocation;
	/** 用户注册平台，1-pc，2-wap，3-微信公众号，4-微信小程序，5-app */
	private Integer source;
	/** 最后登录时间 */
	private Date lastLoginTime;
	/** 最后登录ip */
	private String lastLoginIp;
	/** 备注 */
	private String remark;
	/** 生效标记，0-生效，1-不生效 */
	private Integer disabled;

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getAvatar() {
		return avatar;
	}
	public void setBirthDay(Date birthDay) {
		this.birthDay = birthDay;
	}

	public Date getBirthDay() {
		return birthDay;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getSex() {
		return sex;
	}
	public void setWedlock(Integer wedlock) {
		this.wedlock = wedlock;
	}

	public Integer getWedlock() {
		return wedlock;
	}
	public void setRegIp(String regIp) {
		this.regIp = regIp;
	}

	public String getRegIp() {
		return regIp;
	}
	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	public Date getRegTime() {
		return regTime;
	}
	public void setMemberLvId(Long memberLvId) {
		this.memberLvId = memberLvId;
	}

	public Long getMemberLvId() {
		return memberLvId;
	}
	public void setLvExpireTime(Date lvExpireTime) {
		this.lvExpireTime = lvExpireTime;
	}

	public Date getLvExpireTime() {
		return lvExpireTime;
	}
	public void setPoint(Integer point) {
		this.point = point;
	}

	public Integer getPoint() {
		return point;
	}
	public void setAdvance(BigDecimal advance) {
		this.advance = advance;
	}

	public BigDecimal getAdvance() {
		return advance;
	}
	public void setEducation(String education) {
		this.education = education;
	}

	public String getEducation() {
		return education;
	}
	public void setVocation(String vocation) {
		this.vocation = vocation;
	}

	public String getVocation() {
		return vocation;
	}
	public void setSource(Integer source) {
		this.source = source;
	}

	public Integer getSource() {
		return source;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}
	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}

	public Integer getDisabled() {
		return disabled;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("name", getName())
            .append("avatar", getAvatar())
            .append("birthDay", getBirthDay())
            .append("sex", getSex())
            .append("wedlock", getWedlock())
            .append("regIp", getRegIp())
            .append("regTime", getRegTime())
            .append("memberLvId", getMemberLvId())
            .append("lvExpireTime", getLvExpireTime())
            .append("point", getPoint())
            .append("advance", getAdvance())
            .append("education", getEducation())
            .append("vocation", getVocation())
            .append("source", getSource())
            .append("lastLoginTime", getLastLoginTime())
            .append("lastLoginIp", getLastLoginIp())
            .append("remark", getRemark())
            .append("disabled", getDisabled())
            .toString();
    }
}
